﻿<%@ Page Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of Equipment.LogOnModel)" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Log On
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        &nbsp;</h2>
    <% Using Html.BeginForm()%>
    <%: Html.ValidationSummary(True, "Login was unsuccessful. Please correct the errors and try again.")%>
    <div class="login-container">
        <fieldset>
            <legend>Log On</legend>
            <div class="editor-field right">
                <%: Html.LabelFor(Function(m) m.UserName) %>
                <%: Html.TextBoxFor(Function(m) m.UserName, New With {.class = "text"})%>
                <%: Html.ValidationMessageFor(Function(m) m.UserName) %>
            </div>
            <div class="editor-field right">
                <%: Html.LabelFor(Function(m) m.Password)%>
                <%: Html.PasswordFor(Function(m) m.Password, New With {.class = "text"})%>
                <%: Html.ValidationMessageFor(Function(m) m.Password) %>
            </div>
            <br />
            <p class="right">
                <input type="submit" class="button" value="Log On" />
            </p>
            <div class="editor-label left">
                <br />
                <br />
                <%: Html.CheckBoxFor(Function(m) m.RememberMe) %>
                <%: Html.LabelFor(Function(m) m.RememberMe) %>
            </div>
        </fieldset>
        <fieldset>
         <legend>Time Zone</legend>
            <div class="editor-field left">
                <%: Html.DropDownListFor(Function(m) m.Timezone, New SelectList(Model.TimezoneList, "Key", "Value", ViewData("SelectedTimeZone")))%><br />
            </div>
        </fieldset>
        <br />
             <div style="width:100%" class="text-center">
         ver.&nbsp;<%= ViewData("Ver")%>
     </div>
     <br />
    </div>
    <br />
    <br />
    <br />
    <% End Using%>
</asp:Content>
